package com.lx.zxs.service.impl;

import com.lx.zxs.entity.User;
import com.lx.zxs.mapper.CostumerMapper;
import com.lx.zxs.service.CostumerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CostumerServiceImpl implements CostumerService {
    @Autowired
    CostumerMapper costumerMapper;
    @Override
    public int insertUser(User user) {
        return costumerMapper.insertUser(user);
    }

    @Override
    public int updateUser(User user) {
        return costumerMapper.updateUser(user);
    }

    @Override
    public int delUser(int id) {
        return costumerMapper.delUser(id);
    }

    @Override
    public List<User> queryUserByParms(String keyWords, Integer id) {
        return costumerMapper.queryUserByParms(keyWords,id);
    }
}
